package com.two.service.pinglun.controller.api;

import com.two.common.util.CommonResult;
import com.two.service.pinglun.service.PinglunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/caipin/caipin")
public class ApiCaipinController {
    @Autowired
    private PinglunService pinglunService;

    @RequestMapping("selectByNameAndRid")
    public CommonResult select(@RequestParam String dishName, @RequestParam Integer rid){
       return pinglunService.find(dishName,rid);
    }
}
